/*
 * StringCalculator.h
 *
 *  Created on: 07-10-2011
 *      Author: Lukard
 */

#ifndef STRINGCALCULATOR_H_
#define STRINGCALCULATOR_H_
#include <FBase.h>
using namespace Osp::Base;

class StringCalculator {
public:
	StringCalculator();
	virtual ~StringCalculator();

	String add(const String& n1, const String& n2);
	String subtract(const String& n1, const String& n2);
	String multiply(const String& n1, const String& n2);
	String divide(const String& n1, const String& n2);

private:
	void equalize(String& n1, String& n2);		// equalize to strings by adding '0' before and after number
	String addZeros(const String& n, const int howMany, bool inFront = true);
	String remoweZeros(const String& n);


	//String power(const String& base, const String& power);

	bool lowerEqual(const String& n1, const String& n2);
};

#endif /* STRINGCALCULATOR_H_ */
